<template>
    <view class="container data-v-356dac6e">
        <view class="header-tabs data-v-356dac6e">进行中</view>
        <resale-item @__l="__l" class="data-v-356dac6e" :info="item" :vueId="'24822c60-1-' + index" v-for="(item, index) in list" :key="index"></resale-item>
        <no-data @__l="__l" class="data-v-356dac6e" vueId="24822c60-2" v-if="$root.g0"></no-data>
        <no-more @__l="__l" class="data-v-356dac6e" vueId="24822c60-3" v-else></no-more>
    </view>
</template>

<script>
import noData from '@/components/NoData/NoData';
import noMore from '@/components/NoMore/NoMore';
import resaleItem from '@/pages/resale/components/ResaleItem';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/resale/index'],
    {
        3724: function (t, n, e) {
            'use strict';

            e.d(n, 'b', function () {
                return a;
            });
            e.d(n, 'c', function () {
                return o;
            });
            e.d(n, 'a', function () {
                return i;
            });
            var i = {
                NoData: function () {
                    return e.e('components/NoData/NoData').then(e.bind(null, 'cafe'));
                },
                NoMore: function () {
                    return e.e('components/NoMore/NoMore').then(e.bind(null, '0ffd'));
                }
            };
            var a = function () {
                this.$createElement;
                var t = (this._self._c, 0 === this.list.length && this.isInit);
                this.setData(
                    Object.assign(
                        {},
                        {
                            $root: {
                                g0: t
                            }
                        }
                    )
                );
            };
            var o = [];
        },
        '4f64': function (t, n, e) {},
        '65f6': function (t, n, e) {
            'use strict';

            (function (t) {
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var i = {
                    components: {
                        ResaleItem: function () {
                            e.e('pages/resale/components/ResaleItem')
                                .then(
                                    function () {
                                        return resolve(e('1f03'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        }
                    },
                    data: function () {
                        return {
                            types: ['pending', 'completed'],
                            typeTextList: ['进行中'],
                            current: 0,
                            page: 1,
                            perPage: 4,
                            list: [],
                            isInit: false,
                            isLoading: false
                        };
                    },
                    filters: {},
                    computed: {},
                    onLoad: function (t) {},
                    onShow: function () {
                        t.showLoading({
                            title: '加载中~'
                        });
                        this.initData().then(function (n) {
                            t.hideLoading();
                        });
                    },
                    watch: {
                        current: function (t) {
                            this.page = 1;
                            this.list = [];
                            this.initData();
                        }
                    },
                    onReachBottom: function () {
                        this.initData();
                    },
                    methods: {
                        initData: function () {
                            var that = this;
                            return (
                                !this.isLoading &&
                                ((this.isLoading = true),
                                this.$http('/asset/resales', 'GET', {
                                    status: this.types[this.current],
                                    page: this.page,
                                    per_page: this.perPage
                                }).then(function (n) {
                                    that.list = that.list.concat(n.data.list);
                                    that.isInit = true;
                                    that.isLoading = false;
                                    that.page++;
                                }))
                            );
                        }
                    }
                };
                n.default = i;
            }.call(this, e('543d').default));
        },
        '7c3a': function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('3724');
            var a = e('f12b');
            for (var o in a) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return a[t];
                        });
                    })(o);
                }
            }
            e('b9ef');
            var s = e('f0c5');
            var c = Object(s.a)(a.default, i.b, i.c, false, null, '356dac6e', null, false, i.a, void 0);
            n.default = c.exports;
        },
        b9ef: function (t, n, e) {
            'use strict';

            var i = e('4f64');
            e.n(i).a;
        },
        ee34: function (t, n, e) {
            'use strict';

            (function (t, n) {
                var i = e('4ea4');
                e('18ba');
                i(e('66fd'));
                var a = i(e('7c3a'));
                t.__webpack_require_UNI_MP_PLUGIN__ = e;
                n(a.default);
            }.call(this, e('bc2e').default, e('543d').createPage));
        },
        f12b: function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('65f6');
            var a = e.n(i);
            for (var o in i) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return i[t];
                        });
                    })(o);
                }
            }
            n.default = a.a;
        }
    },
    [['ee34', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './index.css';
</style>
